package com.aistar.service.myfoot.impl;

import com.aistar.mapper.FootprintMapper;
import com.aistar.pojo.Footprint;
import com.aistar.pojo.FootprintExample;
import com.aistar.service.myfoot.SelectCityByUserIdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.*;

/**
 * @author shkstart
 * @date 2019/10/5 - 15:15
 */
@Service
public class SelectCityByUserIdServiceImpl implements SelectCityByUserIdService,Serializable {
    @Autowired
    private FootprintMapper footprintMapper;
    @Override
    public List<Footprint> selectCityByUserId(int id) {
        FootprintExample footprintExample = new FootprintExample();
        FootprintExample.Criteria criteria = footprintExample.createCriteria();
        criteria.andFootUserIdEqualTo(id);
        return footprintMapper.selectByExample(footprintExample);
    }
}
